package com.ysd.lis.controller.bac;


import com.ysd.common.Result;
import com.ysd.lis.controller.pub.BaseController;
import com.ysd.lis.entity.bac.BacObserResult;
import com.ysd.lis.service.bac.BacObserResultService;
import com.ysd.lis.service.bac.BacStrainLogService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 菌落观察结果 前端控制器
 * </p>
 *
 * @author cfz
 * @since 2024-03-27
 */
@RestController
@RequestMapping("/api/bac/bac-obser-result")
public class BacObserResultController extends BaseController {
    @Autowired
    BacObserResultService bacObserResultService;

    @Autowired
    BacStrainLogService bacStrainLogService;

    @ApiOperation("查询")
    @GetMapping("/findBacObserResultList")
    public Result findBacObserResultList(BacObserResult bacObserResult) {
        return bacObserResultService.findBacObserResultList(bacObserResult);
    }
    @ApiOperation("查询")
    @GetMapping("/getAlarmResult")
    public Result getAlarmResult(BacObserResult bacObserResult) {
        return bacObserResultService.getAlarmResult(bacObserResult);
    }

    @ApiOperation("增加")
    @PostMapping("/addBacObserResult")
    public Result addBacObserResult(@RequestBody BacObserResult bacObserResult) {
        return bacObserResultService.addBacObserResult(bacObserResult);
    }

    @ApiOperation("新增或编辑")
    @PostMapping("/saveOrUpdateBacObserResult")
    public Result saveOrUpdateBacObserResult(@RequestBody BacObserResult bacObserResult) {
        return bacObserResultService.saveOrUpdateBacObserResult(bacObserResult);
    }

    @ApiOperation("删除")
    @PostMapping("/deleteBacObserResult")
    public Result deleteBacObserResult(@RequestBody BacObserResult bacObserResult) {
        return bacObserResultService.deleteBacObserResult(bacObserResult);
    }

    @ApiOperation("修改")
    @PostMapping("/updateBacObserResult")
    public Result updateBacObserResult(@RequestBody BacObserResult bacObserResult) {
        return bacObserResultService.updateBacObserResult(bacObserResult);
    }
}
